package com.lingyi.algorithm.lab3;

/**
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2020-08-20 14:20
 */
public class App {


    public static void main(String[] args) {



        SqStack<Integer> sqStack = new SqStack(3);
        sqStack.print();
        sqStack.push(8);
        sqStack.push(10);
        sqStack.push(9);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.push(10);
        sqStack.print();

        Integer pop = sqStack.pop();
        System.out.println("取出的元素是:" + pop);
        sqStack.print();

        sqStack.pop();
        sqStack.pop();
        sqStack.pop();
        sqStack.pop();
        sqStack.pop();
        sqStack.print();
        sqStack.push(10);
        sqStack.print();

    }
}
